#define tabs(tabs)
<div class=""><!-- nav-tabs-custom -->
	  <ul id="content_tab" class="nav nav-tabs">
	  </ul>
</div>
<div id="tab_content" class="tab-content">
                     
</div>
<script src="/static/basic/js/basic-tabswitch.js"></script>
<script type="text/javascript">
$(function(){
	var activeTabsId = -1;
	var firstTabsId;
	#for(tab : tabs)
		addTabs({
               id:"#(tab.id)",
               title:"#(tab.title)",
               url: "#(tab.url)",
               icon:"#(tab.icon)",
               close: "#(tab.close??true)"
         });
	     #if(tab.isactvie)
	    	 activeTabsId = "#(tab.id)";
	     #end
	     
	     #if(for.first)
	    	 firstTabsId = "#(tab.id)";
	     #end
	#end
	activeTables(activeTabsId==-1?firstTabsId:activeTabsId);
});
</script>
#end
